package com.liip.log.service.impl;

import java.util.Optional;

import org.springframework.stereotype.Service;

import com.liip.log.entity.User;
import com.liip.log.service.UserService;
/**
 * 
 * @ClassName: UserServiceImpl
 * @Description: TODO
 * @author Liip
 * @date 2020-11-12 08:46:35
 */
@Service
public class UserServiceImpl implements UserService {

	public User getInformation(String userName, String passWord) {
		User u = new User();
		if(Optional.ofNullable(userName).isPresent() || Optional.ofNullable(passWord).isPresent()) {
			u.setUserName(userName);
			u.setPassword(passWord);
		}else {
			u.setUserName("无名");
			u.setPassword("空");
		}
		return u;
	}

}
